﻿using Capture.BLL;
using Capture.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Capture
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Inserttimer_Tick(object sender, EventArgs e)
        {
            DataCapture model = new DataCapture
            {
                Id = 1,
                Name = "Agriculture",
                Pid = 0,
                Eid = 1,
                Route = "1,",
                ModifyTime = DateTime.Now,
                CreateTime = DateTime.Now,
            };
            DataCaptureBLL bll = new DataCaptureBLL();
            var _return = bll.CreateDataCapture(model);
        }
    }
}
